package com.yqkj.zysoft.upms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yqkj.zysoft.upms.entity.FrameworkUser;
import com.yqkj.zysoft.upms.entity.dto.FunctionAuthDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author GreatorMan.cool
 * @since 2022-09-15
 */
public interface FrameworkUserMapper extends BaseMapper<FrameworkUser> {
    /**
     * 根据用户ID查询功能与权限
     * @param userId 用户ID
     * @return 返回功能列表与权限数据
     */
    List<FunctionAuthDto> queryFuncAndAuthInfoByUserId(@Param("userId") Long userId);

}
